from pyecharts.charts import Bar
from pyecharts import options
sal=[3500,3400,2300,4700]
city=["广州","重庆","上饶","北京"]
bar=Bar()
bar.add_xaxis(city)
bar.add_yaxis("月薪/元",sal)
bar.set_global_opts(title_opts=options.TitleOpts(title="各城市最低薪水图",subtitle="月薪/元"))
bar.render("barmin.html")